ff_vecs_t geojson_vecs = {
ff_type_file,
- { (ff_cap)(/*ff_cap_read | */ff_cap_write), ff_cap_write, ff_cap_none },
+ {
+ (ff_cap)(ff_cap_read | ff_cap_write) /* waypoints */,
+ (ff_cap)(ff_cap_read | ff_cap_write) /* tracks */,
+ (ff_cap)(ff_cap_read | ff_cap_write) /* routes */,
+ },
geojson_rd_init,
geojson_wr_init,
geojson_rd_deinit,
--- /dev/null
+{"type":"FeatureCollection","features":[{"type":"Feature","geometry":{"type":"Point","coordinates":[1.0,1.0]},"properties":{}},{"type":"Feature","geometry":{"type":"MultiPoint","coordinates":[[2.0,2.0]]},"properties":{}},{"type":"Feature","geometry":{"type":"Polygon","coordinates":[[[3.0,3.0],[4.0,4.0],[5.0,5.0],[3.0,3.0]]]},"properties":{}},{"type":"Feature","geometry":{"type":"LineString","coordinates":[[6.0,6.0],[7.0,7.0]]},"properties":{}},{"type":"Feature","geometry":{"type":"MultiPolygon","coordinates":[[[[8.0,8.0],[9.0,9.0],[10.0,10.0],[8.0,8.0]]]]},"properties":{}},{"type":"Feature","geometry":{"type":"MultiLineString","coordinates":[[[11.0,11.0],[12.0,12.0]],[[12.0,12.0],[13.0,13.0]],[[14.0,14.0],[15.0,15.0]]]},"properties":{}}]}
\ No newline at end of file
high fidelity transfers through this format.
</para>
<para>
-Initially, only write support for waypoints and tracks is available.
-Waypoints are converted to a FeatureCollection of Points.
+Waypoints are mapped to a FeatureCollection of Points.
The properties for name and description are written, where available.
Tracks are converted to a LineString.
+MultiPoint are converted to Waypoints.
+LineString, Polygon and MultiPolygon are converted to routes.
+MultiLineString are conveted to tracks.
</para>
<para>
-Potential future work includes the ability to read Point Features and/or
-LineStrings as these would map into our concept of waypoints and
-routes/tracks.
The potentially nested/recursive nature of GeoJSON in general would be
an awkward implementation.
</para>